﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using 多协议通信平台.Base;

namespace 多协议通信平台.ViewModels.Protocal
{
    public partial class Mc3eViewModel : BaseViewModel
    {
        public Mc3eViewModel() 
        {
            PageTitle = "MC3E";
        }

        [ObservableProperty]
        private string ip = "127.0.0.1";

        [ObservableProperty]
        private int port = 5000;

        [ObservableProperty]
        private int recvTimeout = 6000;

        [ObservableProperty]
        private string connectionStatus = "未连接";

        [ObservableProperty]
        private bool connectStatus = false;

        //public ObservableCollection 

        [RelayCommand]
        private void Connect()
        {

        }

        [RelayCommand]
        private void UnConnect()
        {

        }
    }
}
